package com.hzncc.flowable_diboot.custom_field.vo;

import com.diboot.core.binding.annotation.*;
import com.diboot.core.vo.LabelValue;
import com.diboot.iam.entity.IamUser;
import com.diboot.tenant.entity.IamTenant;
import com.hzncc.flowable_diboot.custom_field.entity.CustomTableItemConfig;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* 自定义表格项配置 VO定义
* @author MyName
* @version 1.0
* @date 2024-11-14
* Copyright © MyCorp
*/
@Getter @Setter @Accessors(chain = true)
public class CustomTableItemConfigListVO extends CustomTableItemConfig  {
private static final long serialVersionUID = 1208470675032778200L;

    /**
    * 租户 关联信息
    */
    @BindField(entity = IamTenant.class, field = "name", condition = "this.tenant_id = id")
    private String tenantIdLabel;

    /**
    * 类型 关联字典选项
    */
    @BindDict(type = "customTableItemType", field = "type")
    private LabelValue typeLabel;

    /**
    * 创建人 关联信息
    */
    @BindField(entity = IamUser.class, field = "realname", condition = "this.create_by = id")
    private String createByLabel;

    /**
    * 更新人 关联信息
    */
    @BindField(entity = IamUser.class, field = "realname", condition = "this.update_by = id")
    private String updateByLabel;

}